home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Document icons
- Sent: 4/8/96 7:14 PM
- Received: 4/8/96 7:31 PM
- From: Mark Lanett, mlanett@meer.net
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- There's a little more to it than just changing the icons. First you have to
- deal with an incomplete PartMaker job.
-
- You see, PartMaker generates a copy of a sample project with the most
- important things renamed (classes, files, SOM identifiers). It does *not*
- change part signatures and other OSTypes that are icon-related. Unless
- you've done this yourself, you are probably dealing with part signature
- information from ODFHello.
-
- All the information pertaining to OpenDoc part signatures is scattered
- through both the BNDL and nmap resource sets (2 BNDLs, up to 6 nmaps). It
- should be described in the OpenDoc programmers guide, and probably some
- recipes.
-
- We have an ODF R1 document that talks about this as well. We'll post it
- tomorrow. In brief, however, for the icon for your document you need to
- change the k<MyPart>OSType define (in define.h in ODF d11 I think), and the
- associated OSType in your second BNDL resource. The part signature is
- easier: just change the OSType in the project preferences window (if you
- are using CW) and the first BNDL resource. And change the icon itself of
- course :)
-
- A longer-term solution to this incomplete job performed by PartMaker is to
- have some sort of "Wizard" for editing all the binding information. It's on
- the ODF To-Do list.
-
- At 3:34 PM 4/8/96, Chris Hunt wrote:
- >Re: ODFDraw, OpenDoc 1.0. and ODF d11.
- >
- >I modified my MacIcons.rsrc file and replaced its icon sets with new icons
- >(same id etc.). I executed the build script in MPW and then relinked the
- >part editor so that it builds the required .rsrc files.
- >
- >The problem: the icons are not used by the part editor when it executes
- >(the document it saves doesn't have the new icon appearance, and the app.
- >icon in the Finder menu hasn't changed).
-
-
-
- >I also noted that if I embed the part in another, and then use part info
- >to show the part as an icon (large or small), the new icon shows ok.
-
- This is because ODF is pulling passing the icon to OpenDoc by resource id,
- rather than relying on the binding information.
-
- markl
-
- --
- Mark Lanett, ODF
-
-
-